/**
 * ****************************************************************************
 * Project: RoboBridge
 * ----------------------------------------------------------------------------
 * -------------------------- [c]2012 - KrawallMann ---------------------------
 * ---------------------- http://www.krawallmann.de.tc/ -----------------------
 * ****************************************************************************
 * File: LANNullDevice.java Package: tc.de.krawallmann.robobridge.communication
 * Version: 1.0 Author(s): KrawallMann
 * ****************************************************************************
 * Description:
 * ****************************************************************************
 */
package tc.de.krawallmann.robobridge.communication.lan;

import tc.de.krawallmann.robobridge.communication.CommunicationDeviceType;

/**
 * The Class LANNullDevice is used for testing only and prevents from
 * NullPointerExceptions.
 * 
 * @author KrawallMann
 * @version 1.0
 */
public class LANNullDevice extends LANRemoteDevice {

	/*
	 * (non-Javadoc)
	 * @see communication.LANRemoteDevice#getAddress()
	 */
	@Override
	public String getAddress() {
		throw new IllegalStateException("LANNullDevice.getAddress() called!");
	}

	/*
	 * (non-Javadoc)
	 * @see communication.LANRemoteDevice#getDeviceType()
	 */
	@Override
	public CommunicationDeviceType getDeviceType() {
		throw new IllegalStateException("LANNullDevice.getDeviceType() called!");
	}

	/*
	 * (non-Javadoc)
	 * @see communication.LANRemoteDevice#getName()
	 */
	@Override
	public String getName() {
		throw new IllegalStateException("LANNullDevice.getName() called!");
	}

	/*
	 * (non-Javadoc)
	 * @see communication.LANRemoteDevice#getPort()
	 */
	@Override
	public int getPort() {
		throw new IllegalStateException("LANNullDevice.getPort() called!");
	}

	/*
	 * (non-Javadoc)
	 * @see communication.LANRemoteDevice#isReachable()
	 */
	@Override
	public boolean isReachable() {
		throw new IllegalStateException("LANNullDevice.isReachable() called!");
	}

}
